package kevin.ecstorm.pdd.service.impl;

import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
import com.pdd.pop.sdk.http.api.request.PddOrderInformationGetRequest;
import com.pdd.pop.sdk.http.api.request.PddOrderListGetRequest;
import com.pdd.pop.sdk.http.api.response.PddOrderInformationGetResponse;
import com.pdd.pop.sdk.http.api.response.PddOrderListGetResponse;
import kevin.ecstorm.pdd.config.PddAppAuth;
import kevin.ecstorm.pdd.config.PddAppConfig;
import kevin.ecstorm.pdd.service.IPddService;
import kevin.ecstorm.pdd.service.IPrintOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * ©Copyright ©1968-2020 Midea Group,IT
 * FileName: PrintOrderServiceImpl
 * Author: kevin
 * Date: 2020年03月06日 00:28:24
 * Description: PrintOrderServiceImpl服务接口
 */
@Service
public class PrintOrderServiceImpl implements IPrintOrderService {
    @Autowired
    private IPddService pddService;
    @Autowired
    private PddAppConfig pddAppConfig;

    public <Response extends PopBaseHttpResponse> Response syncInvoke(PopBaseHttpRequest<Response> request, PddAppAuth auth) {
        return pddService.syncInvoke(request, auth);
    }

    public PddOrderListGetResponse syncInvoke(PddOrderListGetRequest request, PddAppAuth auth) {
        return pddService.syncInvoke(request, auth);
    }

    public PddOrderInformationGetResponse syncInvoke(PddOrderInformationGetRequest request, PddAppAuth auth) {
        return pddService.syncInvoke(request, auth);
    }

}
